import { useOutletContext } from "react-router-dom"

function ChildrenB() {
  const { name } = useOutletContext()

  return (
    <div>
      <p>B</p>
      <p>{ name }</p>
    </div>
  )
}

export default ChildrenB